using System;
using System.Collections.Generic;
using System.Text;

using IDAL;
using Entities;

namespace Bll
{
    public class OrderDetailBll
    {
        public IList<OrderDetailInfo> GetAll()
        {
            IOrderDetailDAO iOrderDetail = (IOrderDetailDAO)AssemblyLoader.Load("OrderDetailDAO");
            return iOrderDetail.GetAll();
        }

        public IList<OrderDetailInfo> GetByID(string orderID)
        {
            IOrderDetailDAO iOrderDetail = (IOrderDetailDAO)AssemblyLoader.Load("OrderDetailDAO");
            return iOrderDetail.GetByID(orderID);
        }

        public bool Insert(OrderDetailInfo orderDetail)
        {
            IOrderDetailDAO iOrderDetail = (IOrderDetailDAO)AssemblyLoader.Load("OrderDetailDAO");
            return iOrderDetail.Insert(orderDetail);
        }
    }
}
